package com.wanxin.wb.common.support.exception;

/**
 * feiniu.com Inc.
 * Copyright (c) 2013-2014 All Rights Reserved.
 */


/**
 * <B>Description:</B> 业务异常 类 <br>
 * <B>Create on:</B> 2014年12月15日 上午8:43:26<br>
 *
 * @author yuan.qin
 * @author 
 * @version 1.0
 */
public class BusinessException extends RuntimeException {

    /**
     * 错误码<BR/>返回业务编码。具体值和含义参考具体接口说明。
     */
    private String            code;
    /**
     * 错误信息 <BR/>返回接口调用信息。主要用于返回错误信息。
     */
    //private String            msg;

    /**  */
    private static final long serialVersionUID = 1L;

    public BusinessException() {
        super();
    }

    public BusinessException(String msg) {
        super(msg);
        // this.msg = msg;
    }

    public BusinessException(Throwable t) {
        super(t);
    }

    public BusinessException(String msg, Throwable t) {
        super(msg);
        // this.msg = msg;
    }

    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
        // this.msg = msg;
    }

    public BusinessException(String code, String msg, Throwable t) {
        super(msg, t);
        this.code = code;
        //  this.msg = msg;
    }

    /**
     * Getter method for property <tt>code</tt>.
     *
     * @return property value of code
     */
    public String getCode() {
        return code;
    }

    /**
     * Setter method for property <tt>code</tt>.
     *
     * @param code value to be assigned to property code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * Getter method for property <tt>msg</tt>.
     *
     * @return property value of msg
     */
    /*   public String getMsg() {
           return msg;
       }*/

    /**
     * Setter method for property <tt>msg</tt>.
     *
     * @param msg value to be assigned to property msg
     */
    /*   public void setMsg(String msg) {
           this.msg = msg;
       }*/

}
